﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="BanckleChatVisitors._Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <p>
        <asp:Label ID="Label1" runat="server" Text="API Key :"></asp:Label>
        <asp:TextBox ID="txtKey" runat="server" Width="253px">D2k89oWMqIR6875EjY7dpXBtoLsmUhtN</asp:TextBox>
        <asp:RequiredFieldValidator ID="rfvKey" runat="server" 
            ControlToValidate="txtKey" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
    &nbsp;<asp:Label ID="Label2" runat="server" Text="Email: "></asp:Label>
        <asp:TextBox ID="txtEmail" runat="server" Width="192px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="rfvEmail" runat="server" 
            ControlToValidate="txtEmail" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
        <asp:Label ID="Label3" runat="server" Text="Password: "></asp:Label>
        <asp:TextBox ID="txtPassword" runat="server" Width="225px" TextMode="Password" 
            ViewStateMode="Enabled"></asp:TextBox>
        <asp:RequiredFieldValidator ID="rfvPass" runat="server" 
            ControlToValidate="txtPassword" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
    </p>
    <p>
        <asp:Button ID="btnRefresh" runat="server" onclick="Button2_Click" 
            Text="Get Info" />
    </p>
    <p>
        <asp:Table ID="Table1" runat="server" >
            <asp:TableRow runat="server">
                <asp:TableCell runat="server">
                <asp:Panel ID="pnlVisitors" runat="server" Height="150px" Width="900px" BorderStyle="Solid" BorderWidth="3px" ScrollBars="Auto">
                <asp:Panel ID="pnlTitle1" runat="server" Height="20px" BackColor="MediumSlateBlue" >
                <asp:Label ID="lblTotalVistors" runat="server" Text="Total Online Visitors : " Font-Bold="true" ForeColor= "White" ></asp:Label><asp:Label ID="lblTotalV" runat="server" Text="0" ForeColor= "White"></asp:Label>
                </asp:Panel>
        <asp:GridView ID="GridView1" runat="server" 
    AutoGenerateColumns="False" BackColor="White" BorderColor="#999999" 
    BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Vertical" Width="100%">
            <AlternatingRowStyle BackColor="#DCDCDC" />
            <Columns>
                <asp:BoundField DataField="NickName" 
            HeaderText="Nick Name" />
                <asp:BoundField DataField="Email" 
            HeaderText="Email Address" />
                <asp:BoundField DataField="Ip" HeaderText="IP Address" />
                <asp:BoundField DataField="Country" HeaderText="Country" />
                <asp:BoundField DataField="Language" 
            HeaderText="Language" />
            </Columns>
            <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
            <HeaderStyle BackColor="#000084" Font-Bold="True" 
        ForeColor="White" />
            <PagerStyle BackColor="#999999" ForeColor="Black" 
        HorizontalAlign="Center" />
            <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
            <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" 
        ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#F1F1F1" />
            <SortedAscendingHeaderStyle BackColor="#0000A9" />
            <SortedDescendingCellStyle BackColor="#CAC9C9" />
            <SortedDescendingHeaderStyle BackColor="#000065" />
        </asp:GridView>
    </asp:Panel>
                </asp:TableCell>
               </asp:TableRow>
                <asp:TableRow>
                <asp:TableCell runat="server">
                <asp:Panel ID="pnlQueue" runat="server" Height="150px" BorderStyle="Solid" BorderWidth="3px" ScrollBars="Auto">
                <asp:Panel ID="Panel1" runat="server" Height="20px" BackColor="MediumSlateBlue" >
                <asp:Label ID="lblQueue" runat="server" Text="Total Queued Visitors : " Font-Bold="true" ForeColor="White"></asp:Label><asp:Label ID="lblTotalQ" runat="server" ForeColor="White" Text="0"></asp:Label>
                </asp:Panel>
                <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" Width="100%"
            BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Vertical">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:BoundField DataField="NickName" HeaderText="Nick Name" />
                <asp:BoundField DataField="Email" HeaderText="Email Address" />
                <asp:BoundField DataField="Ip" HeaderText="IP Address" />
                <asp:BoundField DataField="Country" HeaderText="Country" />
                <asp:BoundField DataField="Language" HeaderText="Language" />
            </Columns>
            <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
            <HeaderStyle BackColor="#000084" Font-Bold="True" 
        ForeColor="White" />
            <PagerStyle BackColor="#999999" ForeColor="Black" 
        HorizontalAlign="Center" />
            <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
            <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" 
        ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#F1F1F1" />
            <SortedAscendingHeaderStyle BackColor="#0000A9" />
            <SortedDescendingCellStyle BackColor="#CAC9C9" />
            <SortedDescendingHeaderStyle BackColor="#000065" />
        </asp:GridView>
        </asp:Panel>
                </asp:TableCell>
            </asp:TableRow>
            <asp:TableRow runat="server">
                <asp:TableCell runat="server">
                <asp:Panel ID="pnlOperator" runat="server" Height="150px" BorderStyle="Solid" BorderWidth="3px" ScrollBars="Auto">
                <asp:Panel ID="Panel2" runat="server" Height="20px" BackColor="MediumSlateBlue" >
                <asp:Label ID="lblTotalOperators" runat="server" Text="Total Operators : " Font-Bold="true" ForeColor="White"></asp:Label><asp:Label ID="lblTotalOp" runat="server" ForeColor="White" Text="0"></asp:Label>
                </asp:Panel>
                <asp:GridView ID="GridView3" runat="server" AutoGenerateColumns="False" Width="100%"
            BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Vertical">
            <Columns>
                <asp:BoundField DataField="ID" HeaderText="Operator Id" />
                <asp:BoundField DataField="DisplayName" HeaderText="Display Name" />
                <asp:BoundField DataField="Email" HeaderText="Email" />
                <asp:BoundField DataField="Presence" HeaderText="Presence" />
            </Columns>
            <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
            <HeaderStyle BackColor="#000084" Font-Bold="True" 
        ForeColor="White" />
            <PagerStyle BackColor="#999999" ForeColor="Black" 
        HorizontalAlign="Center" />
            <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
            <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" 
        ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#F1F1F1" />
            <SortedAscendingHeaderStyle BackColor="#0000A9" />
            <SortedDescendingCellStyle BackColor="#CAC9C9" />
            <SortedDescendingHeaderStyle BackColor="#000065" />
        </asp:GridView>
        </asp:Panel>
                </asp:TableCell>
            </asp:TableRow>
        </asp:Table>
    </p>
    
    </asp:Content>
